package com.dongdongshop.mapper;

import com.dongdongshop.pojo.goods.TbGoods;
import com.dongdongshop.pojo.goods.TbGoodsExample;
import java.util.List;

import com.dongdongshop.pojo.vo.*;
import org.apache.ibatis.annotations.Param;

public interface TbGoodsMapper {
    int countByExample(TbGoodsExample example);

    int deleteByExample(TbGoodsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TbGoods record);

    int insertSelective(TbGoods record);

    List<TbGoods> selectByExample(TbGoodsExample example);

    TbGoods selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TbGoods record, @Param("example") TbGoodsExample example);

    int updateByExample(@Param("record") TbGoods record, @Param("example") TbGoodsExample example);

    int updateByPrimaryKeySelective(TbGoods record);

    int updateByPrimaryKey(TbGoods record);

    void addGoods(TbGoods goods);

    void saveGood(TbGoods tbGoods);

    List<ItemCatGoodsVo> getGoodsList(@Param("auditStatus")String auditStatus,@Param("goodsName") String goodsName, @Param("sellerId")String sellerId);

    List<ItemCatGoodsVo> findGoodsByName(@Param("goodsName")String goodsName);

    GoodsDescVo getById(@Param("id") Long id);

    List<GoodsVo> selectByGoodsShVo(@Param("goodsName") String goodsName);

    List<DetailsVo> getDetailsById(@Param("id") Long id);

    Integer updateauditStatusM(@Param("goodsIdArr")Long[] goodsIdArr,@Param("auditStatus") String auditStatus);

    TbGoodAllVo getGoodsById(Long o);
}